﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ProjectMeetingDemonstration.cs" company="DissingNelleman">
//   
// All rights reserved. </copyright>
// <summary>
//   The project meeting demonstration.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace ServiceLibrary.Models.Domain
{
    using NHibernate.Mapping.ByCode.Conformist;

    using ServiceLibrary.Models.Base;

    /// <summary>
    /// The project meeting demonstration.
    /// </summary>
    public class ProjectMeetingDemonstration : Entity
    {
        #region Public Properties

        /// <summary>
        /// Gets or sets the description.
        /// </summary>
        public virtual string Description { get; set; }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        public virtual string Name { get; set; }

        #endregion
    }

    /// <summary>
    /// The project meeting demonstration mapping.
    /// </summary>
    public class ProjectMeetingDemonstrationMapping : ClassMapping<ProjectMeetingDemonstration>
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="ProjectMeetingDemonstrationMapping"/> class.
        /// </summary>
        public ProjectMeetingDemonstrationMapping()
        {
            this.Property(x => x.Name);
            this.Property(x => x.Description, m => m.Length(int.MaxValue / 2));
        }

        #endregion
    }
}